home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cpptut22 / truck.h < prev    next >
C/C++ Source or Header  |  1992-01-19  |  406b  |  23 lines

  1.                                   // Chapter 7 - Program 6
  2. #ifndef TRUCK_H
  3. #define TRUCK_H
  4.  
  5. #include "vehicle.h"
  6.  
  7. class truck : public vehicle {
  8.    int passenger_load;
  9.    float payload;
  10. public:
  11.    void init_truck(int how_many = 2, float max_load = 24000.0);
  12.    float efficiency(void);
  13.    int passengers(void);
  14. };
  15.  
  16. #endif
  17.  
  18.  
  19.  
  20. // Result of execution
  21. //
  22. // (this file cannot be executed)
  23.